#pragma once
#include"common.h"
std::string respondHtml(std::string str)
{
  std::string http_response = "http/1.0 200 OK\n";
  // http_response += "Content-Type: text/plain;charset=utf-8\n";
  http_response += "Content-Type: text/html;charset=utf-8\n";
  http_response += "\n";
  http_response += str;
  http_response += "\n";
  return http_response;
}
std::string respondCss(std::string str)
{
  std::string http_response = "http/1.0 200 OK\n";
  http_response += "Content-Type: text/css;charset=utf-8\n";
  http_response += "\n";
  http_response += str;
  http_response += "\n";
  return http_response;
}
std::string respondJs(std::string str)
{
  std::string http_response = "http/1.0 200 OK\n";
  http_response += "Content-Type: application/javascript;charset=utf-8\n";
  http_response += "\n";
  http_response += str;
  http_response += "\n";
  return http_response;
}